package tt.lab.designparttern.bridge;

public class Test {

	
	public static void main(String[] args) {
		
		//abstraction
		Shape circle = new Circle();
		Shape rect = new Rectangle();
		
		//implementor
		Draw winDraw = new WindowsDraw();
		Draw macDraw = new MacDraw();
		
		circle.setDraw(winDraw);
		circle.display();

		circle.setDraw(macDraw);
		circle.display();
		
		System.out.println();
		
		rect.setDraw(winDraw);
		rect.display();

		rect.setDraw(macDraw);
		rect.display();
	}

}
